home *** CD-ROM | disk | FTP | other *** search
- Path: news.central.ntua.gr!not-for-mail
- From: hnick@central.ntua.gr (Nick C. Fotis)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Ceck out this bug. What the *** is SASC/6.56 doing?
- Date: 10 Mar 1996 22:10:55 GMT
- Organization: National Technical University of Athens, Greece
- Message-ID: <4hvk1f$o0c@zeus.central.ntua.gr>
- References: <1120.6643T91T406@login.eunet.no>
- NNTP-Posting-Host: gate2-zeus.central.ntua.gr
- X-Newsreader: NN version 6.5.0 #1 (NOV)
-
- patrick.hanevold@login.eunet.no (Patrick Hanevold) writes:
-
-
- >#define ScreenWidth 160
- >#define ScreenHeight 128
- >void main(void)
- >{
- > int x,y,n;
- > UBYTE Buffer[ScreenWidth];
- > ULONG Palette[256*3+2]; // This one causes the bug.
- > struct Screen *Scr=OpenScreenTags(NULL,
- > SA_Width, 320,
- > SA_Height, 256,
- > SA_Depth, 8,
- > TAG_END);
-
- Hmm, that Palette array holds 3080 bytes on the stack.
- My guess is that you screw up your stack. Try making the stack bigger or
- declare the array as global, out of the main function.
-
- ><sb>Patrick Hanevold - Virtual Reality developer
- ><sb>patrick.hanevold@login.eunet.no
- ><sb>Amiga and official Be developer
-
- --
-
- +----------------------------------------------------------------------------+
- | Alkinoos Alexandros Argiropoulos A1200, '030@40, 6MB Fast |
- | Athens, Greece "AAA is not a chipset...It's my name" |
- +----------------------------------------------------------------------------+
-